package com.xuelang.pipeline.client.resource;

import com.xuelang.pipeline.client.common.result.ApiResult;
import com.xuelang.pipeline.client.resource.dto.PodListDTO;
import com.xuelang.pipeline.client.resource.dto.PodListVO;
import com.xuelang.pipeline.client.resource.dto.PodLogVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import jakarta.validation.Valid;
import java.util.List;

/**
 * Pod服务接口
 *
 * @author xiwen.zxg
 * @since 2024/5/28
 */
public interface IPodService {

    /**
     * 获取pod列表
     *
     * @param podListVO
     * @return
     */
    @PostMapping(value = "/list", produces = "application/json;charset=utf-8")
    ApiResult<List<PodListDTO>> list(@RequestBody @Valid PodListVO podListVO);

    /**
     * 获取pod日志
     *
     * @param podLogVO
     * @return
     */
    @PostMapping(value = "/log", produces = "application/json;charset=utf-8")
    ApiResult<String> log(@RequestBody @Valid PodLogVO podLogVO);

}
